/**
 * 新闻接口
 */

import base from './base' // 导入接口域名列表
import Request from '../request' // 导入http中创建的axios实例
let axios = new Request()

const common = {
  /**
   * 获取新闻列表
   * @param {*} params
   * @param {*} options
   * @returns
   */
  getNewList(params, options) {
    return axios.post(
      `${base.api}/news/index`,
      params,
      options,
      base.loading
    )
  },
  getNewDetail(params, options) {
    return axios.post(`${base.api}/news/detail`, params, options)
  },
  
}

export default common
